package com.supsky.service2.controller;


import com.supsky.serviceapi2.dto.OrderDto;
import com.supsky.serviceapi2.service.IOrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Date;

//@RestController
public class TestController {

    //@Resource
    private IOrderService orderService;

    @RequestMapping("test")
    public String test(){
        OrderDto dto = new OrderDto();
        dto.setOrderId(3L);
        dto.setUserId(3L);
        dto.setStatus((byte)1);
        dto.setCreateDate(new Date());
        orderService.saveOrder(dto);
        return "ok";
    }

}
